import request from "@/utils/request";
const pmsArchives = "/pmsArchives";
const screen = "/screen";
const bls = "/bls";

// 查询档案列表
export function queryArchives(data) {
  return request({
    url: `${pmsArchives}/query`,
    method: "post",
    data: data,
  });
}

// 新增项目内容
export function insertArchives(data) {
  return request({
    url: `${pmsArchives}/insert`,
    method: "post",
    data: data,
  });
}

// 修改项目内容
export function updateArchives(data) {
  return request({
    url: `${pmsArchives}/update`,
    method: "post",
    data: data,
  });
}

// 删除项目内容
export function deleteArchives(data) {
  return request({
    url: `${pmsArchives}/delete`,
    method: "post",
    data: data,
  });
}

// 根据档案id 档案类型 菜单id查询当前菜单的变量信息
export function queryDetail(data) {
  return request({
    url: `${pmsArchives}/queryDetail`,
    method: "post",
    data: data,
  });
}

// 根据搜索条件导出档案数据
export function exportZl(data) {
  return request({
    url: `${bls}/exportZl`,
    method: "post",
    data: data,
    responseType: 'blob'
  });
}

// 查询筛查列表
export function queryDetailList(data) {
  return request({
    url: `${screen}/query`,
    method: "post",
    data: data,
  });
}

// 查询医院列表
export function queryHospital(data) {
  return request({
    url: `hospital/queryHospital   `,
    method: "post",
    data: data,
  });
}

// 导出筛查列表
export function exportData(data) {
  return request({
    url: `${screen}/exportRzScreen`,
    method: "post",
    data: data,
    responseType: "blob",
  });
}


// // 根据搜索条件导出档案数据 // 未完成
// export function queryHospital(data) {
//   return request({
//     url: `${pmsArchives}/exportZl`,
//     method: "post",
//     data: data,
//     responseType: 'blob'
//   });
// }
